<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 15:36:35
         compiled from "..\templates\product\product_update.tpl" */ ?>
<?php /*%%SmartyHeaderCode:100495489579385d4f2-41940532%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd19d979950f155308f43e06f28a7bc4ff03e28a2' => 
    array (
      0 => '..\\templates\\product\\product_update.tpl',
      1 => 1416938014,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '100495489579385d4f2-41940532',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'notice' => 0,
    'read_product' => 0,
    'list_product_image' => 0,
    'list_product' => 0,
    'list_brand' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_54895793962ab1_84622829',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54895793962ab1_84622829')) {function content_54895793962ab1_84622829($_smarty_tpl) {?><div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="index2.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>Trang chủ </a> <a href="#" class="current">Cập nhật</a> </div>
  </div>
  <?php echo $_smarty_tpl->tpl_vars['notice']->value;?>

  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> 
          <div class="buttons">
	       <a title="Icon Title" class="btn btn-mini" href="product_list.php"><i class="icon-align-left"></i>Quay về trang danh sách</a>							
        </div>
          <span class="icon"> <i class="icon-align-justify"></i> </span>
            <h5>Cập nhật danh sách sản phẩm</h5>
          </div>
          <div class="widget-content nopadding">
            <form action="product_update_sm.php" method="post" class="form-horizontal" enctype="multipart/form-data">
              <div class="control-group">
              <input type="hidden"   name="data[id]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['id'];?>
"/>
                <label class="control-label">Thể loại sản phẩm :</label>
                <input type="hidden"   name="data1[product_id]" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['list_product_image']->value['product_id'])===null||$tmp==='' ? '' : $tmp);?>
"/>
                <div class="controls">
                  <select name="data[category_id]">
                    <option value="-1">--Chọn thể loại--</option>
                    <?php echo print_list($_smarty_tpl->tpl_vars['list_product']->value,0,'--',$_smarty_tpl->tpl_vars['read_product']->value['category_id']);?>

                  </select>
                </div>
              </div>
              <div class="control-group">
              
                <label class="control-label">Thương hiệu sản phẩm :</label>
                <div class="controls">
                  <select name="data[brand_products_id]">
                    <option value="-1">--Chọn thể loại--</option>
                    <option value="0">--Không chọn thương hiệu--</option>
                    <?php echo print_list_brand($_smarty_tpl->tpl_vars['list_brand']->value,'--',$_smarty_tpl->tpl_vars['read_product']->value['brand_products_id']);?>

                  </select>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Tên sản phẩm :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập tên sản phẩm" name="data[name]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['name'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Đơn giá cũ :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập đơn giá cũ" name="data[price_old]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['price_old'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Đơn giá mới :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập đơn giá mới" name="data[price_new]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['price_new'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Chất liệu :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập chất liệu" name="data[material]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['material'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Kích thước :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập kích thước" name="data[size]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['size'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Màu Sắc :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập màu sắc" name="data[color]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['color'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Thời gian bảo hành :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập thời gian bảo hành" name="data[warranty]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['warranty'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Số lượng :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập số lượng" name="data[quantity]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['quantity'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Title :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="nhập tiêu đề" name="data[title]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['title'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Keyword :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="Nhập từ khóa" name="data[keyword]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['keyword'];?>
"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">Description :</label>
                <div class="controls">
                  <input type="text" class="span6" placeholder="Nhập lời giới thiệu" name="data[description]" value="<?php echo $_smarty_tpl->tpl_vars['read_product']->value['description'];?>
"/>
                </div>
              </div>
              
              <div class="control-group">
                <label class="control-label">Hình ảnh đại diện :</label>
                <div class="controls">
                  <input type="file"  name="image"/>
                  <small class="controls">(*.gif , *.jpg ,*.png &lt; 200kb)</small> </div>
              </div>
              <div class="control-group">
                <label class="control-label">Hình ảnh con :</label>
                <div class="controls">
                  <input type="file"  name="product_image[]" multiple="multiple"/>
                  <small class="controls">(*.gif , *.jpg ,*.png &lt; 200kb)</small> </div>
              </div>
      
              <div class="control-group">
                <label class="control-label">Sản phẩm nỗi bật :</label>
                <div class="controls">
                  <input type="checkbox"  name="data[highlights]" value="1" <?php if ($_smarty_tpl->tpl_vars['read_product']->value['highlights']==1){?>checked="checked"<?php }else{ ?><?php }?>/>
                  Đặt làm bài viết nổi bật </div>
              </div>
              <div class="control-group">
                <label class="control-label">Trạng thái :</label>
                <div class="controls">
                  <input type="radio"  name="data[status]" value="1" <?php if ($_smarty_tpl->tpl_vars['read_product']->value['status']==1){?>checked="checked" <?php }?>/>
                  Hiển thị <br />
                  <input type="radio"  name="data[status]" value="0" <?php if ($_smarty_tpl->tpl_vars['read_product']->value['status']==0){?>checked="checked" <?php }?>/>
                  Không hiển thị
                 </div>
              </div>
             
              <div class="control-group">
                <label class="control-label">Chi tiết sản phẩm: </label>
                <div class="controls">
                 <textarea class="text-input textarea ckeditor" id="" name="data[info]" cols="20" rows="5"><?php echo $_smarty_tpl->tpl_vars['read_product']->value['info'];?>
</textarea>
                </div>
              </div>
              <div class="form-actions">
                <button type="submit" class="btn btn-success" name="save_continue">Lưu và tiếp tục</button>
                 <button type="submit" class="btn btn-success" name="save_exit">Lưu và thoát</button>
                  <button type="button" class="btn btn-success" onclick="window.location.href='product_list.php'">Không lưu</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php }} ?>